package com.example.testservice.model;

import java.util.*;

/**
 * @author pactera
 * @since 2021-08-13 星期五 16:25
 */
public class MailNotifyConfig {
  private String id;
  private Boolean enabled;
  private String from;
  private String template;
  private String baseUrl;
  private String[] to = new String[0];
  private String[] cc = new String[0];
  private Set<String> statusChanges = new HashSet<>(Collections.singleton("UP:OFFLINE"));
  private Map<String, Object> additionalProperties = new HashMap<>();

  public MailNotifyConfig() {
  }

  public MailNotifyConfig(String id, Boolean enabled, String from, String template, String baseUrl, String[] to, String[] cc, Set<String> statusChanges, Map<String, Object> additionalProperties) {
    this.id = id;
    this.enabled = enabled;
    this.from = from;
    this.template = template;
    this.baseUrl = baseUrl;
    this.to = to;
    this.cc = cc;
    this.statusChanges = statusChanges;
    this.additionalProperties = additionalProperties;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public Boolean getEnabled() {
    return enabled;
  }

  public void setEnabled(Boolean enabled) {
    this.enabled = enabled;
  }

  public String getFrom() {
    return from;
  }

  public void setFrom(String from) {
    this.from = from;
  }

  public String getTemplate() {
    return template;
  }

  public void setTemplate(String template) {
    this.template = template;
  }

  public String getBaseUrl() {
    return baseUrl;
  }

  public void setBaseUrl(String baseUrl) {
    this.baseUrl = baseUrl;
  }

  public String[] getTo() {
    return to;
  }

  public void setTo(String[] to) {
    this.to = to;
  }

  public String[] getCc() {
    return cc;
  }

  public void setCc(String[] cc) {
    this.cc = cc;
  }

  public Set<String> getStatusChanges() {
    return statusChanges;
  }

  public void setStatusChanges(Set<String> statusChanges) {
    this.statusChanges = statusChanges;
  }

  public Map<String, Object> getAdditionalProperties() {
    return additionalProperties;
  }

  public void setAdditionalProperties(Map<String, Object> additionalProperties) {
    this.additionalProperties = additionalProperties;
  }
}
